@import 'element-ui';
// @import 'element-variables';
@import 'mixin';
@import 'transition';
@import 'center';
@import '../iconfont-cim/iconfont.css';
@import '../iconfont/iconfont.css';
@import 'mousetip';
@import 'sidebar';
   
@font-face {
  font-family: 'Digital';
  src: url('../fonts/Digital-7Mono.TTF');;
}

@font-face {
  font-family: 'YouSheBiaoTiHei';
  src: url('../fonts/YouSheBiaoTiHei.ttf');
}
  
@font-face {
  font-family: 'HuXiaoBo-NanShen';
  src: url('../fonts/HuXiaoBoNanShenTi-2.otf');
}
@font-face {
  font-family: 'alimama';
  src: url('../fonts/alimama.ttf');
}
@font-face {
  font-family: 'songsiyuang';
  src: url('../fonts/songsiyuang.otf');
}
body {
  height: 100%;
  margin: 0;
  //background: url("../../assets/img/common/system_bg.png") center no-repeat;
  //background-color: rgba(0, 11, 31, 1);
  background-size: 100% 100%;
  user-select: none;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: PingFangSC-Medium, PingFang SC, 'Microsoft YaHei', '微软雅黑';
  overflow: hidden;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
  font-size: 14px;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  outline: none;
  text-decoration: none;
}

ul,
li,
p {
  list-style: none;
  margin: 0;
  padding: 0;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

.full-height {
  height: 100%;
}

.box-card {
  //color: #fff;
  border-radius: 5px;
  border: 1px solid #91969c;
  background-color: rgba(14, 26, 42, 0.8);
  z-index: 2;
}

.header-bar,
.app-main {
  color: #5f676e;

  .box-card {
    position: absolute;
    top: 8vh;
    left: 10px;
    border-radius: 5px;
    border: 1px solid #91969c;
    background-color: rgba(14, 26, 42, 0.8);
    z-index: 2;
    overflow: hidden;
  }

  .el-tree,
  .el-table {
    background: transparent;
  }
}

.current-menu-box {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 2;
}

.margin-top-20 {
  margin-top: 20px;
}

.esri-popup {
  .esri-popup__main-container {
    color: #fff;
    border-radius: 5px;
    border: 1px solid #69B3FF;
    background-color: rgba(14, 26, 42, 0.8);
    max-height: 340px;

    .esri-popup__header {
      .esri-popup__header-container {
        .esri-popup__header-title {
          // padding: 6px 15px;
          font-size: 14px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #B0D7FF;
          line-height: 14px;
          text-shadow: 0px 0px 8px #159AFF;
          text-align: left;
          background: linear-gradient(180deg, #FFFFFF 0%, #6BAAFF 100%);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
          &:hover {
            background: transparent;
          }
        }
      }

      .esri-popup__header-container--button {
        &:hover {
          background: transparent;
        }
      }

      .esri-popup__header-buttons {
        .esri-popup__button {
          color: #fff;

          &:hover {
            background: transparent;
          }
        }
      }
    }

    .esri-popup__footer {
      .esri-popup__inline-actions-container {
        .esri-popup__button {
          color: #fff;

          &:hover {
            background: transparent;
          }
        }
      }

      .esri-popup__navigation {
        background: transparent;

        .esri-popup__button {
          color: #fff;

          &:hover {
            color: #f5f5f5;
            background: transparent;
          }
        }
      }
    }
  }

  .esri-popup__pointer {
    display: none;

    .esri-popup__pointer-direction {
      background-color: transparent;
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      top: 0;
      border-top: 20px solid rgba(14, 26, 42, 0.8);
      border-left: 20px solid transparent;
      border-right: 20px solid transparent;
      border-bottom: 20px solid transparent;
      transform: scale(1) rotate(0deg);
      box-shadow: none;
    }
  }
}

.esri-widget {
  &.esri-feature {
    background: transparent !important;
  }

  .esri-widget__table {
    color: #fff;
    border: 1px solid #91969c;

    tr {
      border-bottom: 1px solid #91969c;

      th {
        padding: 0 16px;
        font-size: 14px;
        line-height: 40px;
        border-right: 1px solid #91969c;
      }

      td {
        padding: 0 16px;
        font-size: 14px;
        line-height: 40px;
      }

      &:hover {
        background: rgba(76, 76, 76, 0.1) !important;
      }
    }
  }

  &.esri-component.esri-attribution {
    display: none;
  }

  .esri-popup__header {
    color: #69B3FF;
    border-bottom: 1px solid #69B3FF;
  }

  .esri-popup__content {
    margin: 16px 12px;
    padding: 13px;
    line-height: 1.5;
  }
}

.esri-popup--is-docked {
  right: 60px !important;
}

.esri-popup {
  .esri-popup__main-container {
    .esri-popup__header {
      .esri-popup__header-buttons {
        .esri-popup__button {
          color: #69B3FF;
        }
      }
    }
  }
}

.esri-view {
  .esri-view-surface--inset-outline {
    &:focus {
      &::after {
        outline: none !important;
      }
    }
  }
}

.tip {
  padding: 12px;
  margin-bottom: 16px;

  &.oneMap {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);

    .tip-title {
      color: #fef57a;
    }
  }
}

.card-title-container {
  height: 32px;
  padding: 0 8px;
  margin-bottom: 16px;
  line-height: 32px;
  border-bottom: 2px solid rgba(105,179,255, 0.1);
  background: linear-gradient(360deg, rgba(105,179,255, 0) 0%, rgba(105,179,255, 0.2) 100%);

  .title {
    height: 32px;
    display: inline-block;
    color: #69B3FF ;
    border-bottom: 2px solid #91969c;
  }
}

// 请求替换全局
// 右侧菜单
.el-card {
  .el-card__header {
    border-bottom: 1px solid #91969c;
  }
}

// 图层树图标
.tool-card {
  .icontucengshu {
    color: #69B3FF  !important;
  }
}

// 书签
.menu-card-box {
  .el-icon-delete {
    color: #f56c6c !important;
  }
}

::-webkit-scrollbar {
  height: 6px;
  width: 6px;
  background-color: transparent;
}

.widgets-box {
  .widget-button {
    .widget-button-container {

      &:hover,
      &.active {
        border-color: #91969c;

        .iconfont {
          color: #69B3FF ;
        }
      }
    }
  }
}

.looklegendTrue {
  color: #69B3FF  !important;
}

// 气泡
.el-tooltip__popper {
  border: 1px solid #91969c !important;
  color: #69B3FF  !important;
  background: #0D192A !important;

  .popper__arrow {
    transform: translateY(-1px);
  }
}

// 列表
// 查看详情按钮
.content .info-lists .mask-layer .innerbox i.iconchakan {
  color: #69B3FF  !important;
}

.common-list {
  .content-container {
    .bg-hover {
      i {
        &:first-child {
          color: #69B3FF  !important;
        }
      }
    }
  }
}

// 名称列表
.info-lists-container {
  .el-input__inner::-webkit-input-placeholder {
    font-size: 14px !important;
    color: #fff !important;
  }

  .exportStyle {
    color: #69B3FF ;
  }
}

// 弹窗
// .el-message-box {
//   border-image: @borderImage !important;
//   background: @alertBg !important;

//   .el-message-box__header {
//     border-bottom: 1px solid #91969c; !important;

//     .el-message-box__title {
//       line-height: 36px;
//     }
//   }

//   .el-button {
//     height: 30px !important;
//     width: auto !important;
//     padding: 0 20px !important;
//     line-height: 28px !important;
//     font-size: 14px !important;

//     &.el-button--default {
//       border: 1px solid rgba(255, 255, 255, 0.5) !important;
//       color: #fff !important;
//     }

//     &.el-button--primary {
//       border: 1px solid #91969c; !important;
//       color: #69B3FF ; !important;
//     }
//   }
// }

// 顶板面包屑
// .ubran-history-info {
//   .go-back {
//     padding-top: 0 !important;
//     padding-bottom: 0 !important;

//     .iconfanhui1 {
//       margin-right: 4px;
//       vertical-align: middle;
//     }

//     .el-select,
//     .el-input__inner,
//     .el-select__caret {
//       font-size: 16px !important;
//       color: #3AEFFD !important;

//       input::-webkit-input-placeholder {
//         font-size: 16px !important;
//         color: #3AEFFD !important;
//       }
//     }

//     .el-input__suffix {
//       right: 0 !important;
//     }
//   }
// }

// 下拉框
@seleceBorder: rgba(14, 26, 42, 0.8);

.el-select {

  .el-input__inner:focus,
  .el-input.is-focus .el-input__inner {
    border-color: #91969c !important;
  }
}

.el-select-dropdown {
  border-color: #69B3FF !important;
  background: rgba(14, 26, 42, .8) !important;

  .popper__arrow {
    // border-bottom-color: @seleceBorder !important;

    &:after {
      // border-bottom-color: rgba(14, 26, 42, 0.8) !important;
      border-bottom-color: #ffffff !important;
    }
  }

  .el-select-dropdown__item {
    color: #575B5B;
    background: none;

    .hover,
    &:focus,
    &:hover {
      color: #FFFFFF;
      background: #4395EA;
    }

    &.selected {
      color: #69B3FF ;
    }
  }
}

// 编辑弹窗
.popper-container {
  &.el-select-dropdown {
    background: rgba(14, 26, 42, .8) !important;
  }
}

.popup-item {
  display: flex;
  justify-content: space-around;
  .popup-key {
    width: calc(100% - 126px);
    text-align: left;
  }
  .popup-value {
    width: 122px;
    text-align: right;
  }
}
// 面包屑城市下拉框
// .citylist {
//   .el-select-dropdown {
//     margin-top: 1px !important;
//     border: none !important;
//     background: linear-gradient(180deg, #1E3654 0%, #0D192A 100%);

//     .popper__arrow {
//       display: none !important;
//     }

//     .el-select-dropdown__item {

//       .hover,
//       &:focus,
//       &:hover {
//         color: #F5F7FA !important;
//         background: rgba(38, 94, 107, 1) !important;
//       }
//     }
//   }
// }

// 强制完成

/* 滚动槽 */
::-webkit-scrollbar-track {
  border-radius: 4px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  background: #6e767f;
  border-radius: 3px;
}

@media screen and (max-width: 1366px) {
  html {
    font-size: 12px;
  }
}